package com.hqu.environment.controller.app;

import com.hqu.environment.dao.EquipmentCategoryDao;
import com.hqu.environment.dto.EquipmentCategoryDTO;
import com.hqu.environment.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Description: 设备controller
 * @Date: 2019/04/23 13:16
 * @Author: 邓勇嘉
 **/
@Controller
@RequestMapping("app/equipment")
public class EquipmentController {

    @Autowired
    EquipmentCategoryDao equipmentCategoryDao;


    //获取验证码
    @RequestMapping("/getEquipmentList")
    @ResponseBody
    public Result getVerificationCode() {
        List<EquipmentCategoryDTO> equipmentCategoryList = equipmentCategoryDao.selectList(null);
        return Result.success().add("equipmentCategory",equipmentCategoryList);
    }


}
